import unittest,csv
import os,sys
import time
import c3
import c4

def createsuite():
 suite = unittest.TestSuite()
# 将测试用例加入到测试容器（套件）中
# 把一个文件夹中一个类的测试用例添加到测试套件中
 suite.addTest(unittest.makeSuite(c3.Baidu1))
 suite.addTest(unittest.makeSuite(c4.Baidu2))
 return suite
#
# # 同上
# #  suite1 = unittest.TestLoader().loadTestsFromTestCase(c3.Baidu1)
# #  suite2 = unittest.TestLoader().loadTestsFromTestCase(c4.Baidu2)
# #  suite = unittest.TestSuite([suite1, suite2])
# #  return suite

if __name__=="__main__":
 suite=createsuite()
 runner = unittest.TextTestRunner(verbosity=1)
 runner.run(suite)